<?php
if ($this->session->userdata('logged_in') == TRUE) {
    $this->load->view('view_login_success');
}
?>
<?php $this->load->view('view_pageheader'); ?>
<script language="JavaScript" type="text/javascript">
  function validateForm() {
      if(document.form1.gname.value==""){
          alert("You didn't enter a MENU NAME");
           return false;
      }
      
     // else if (document.form1.gmenu_id[''].checked == false) {
      //  alert ( "Please choose Group Menu" );
     //    return false;
   // }
      
    else {
          return true;}
  }
</script>
<label class="content_linkBack"><a onClick='window.history.go(-1)'>< Back</a></label>
<label class="content_this">| EDIT GROUP MENU</label>
<form id="form1" name="form1" method="post" action="new_gmenu2" onsubmit="validateForm();">    
    <table width="400" border="0" align="center">
        <tr>
            <td colspan="4"></td>
        </tr>
            <tr>
                <td width="39">&nbsp;</td>
                <td width="91">Group name:</td>
                <td width="220">
                    <label>
                        <input type="text" name="gname" id="gname" />
                    </label>
                </td>
                <td width="32">&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>Position:</td>
                <td>
                    <label>
                        <select name="gname2">
                            <option value="top">top</option>
                            <option value="left">left</option>
                        </select>
                    </label>
                </td>
                <td>&nbsp;</td>
            </tr>
        <tr>
            <td>&nbsp;</td>
            <td colspan="2"><div align="center">
                    <input type="submit" name="update" id="update" value="Submit" /><input type="reset" name="cancel" id="cancel" value="Reset" />
                </div></td>
            <td>&nbsp;</td>
        </tr>
    </table>
</form>
<?php $this->load->view('view_pagefooter'); ?>